package com.zqk.pattern.creational.singleton.enuminstance;

/**
 * @Package com.zqk.pattern.creational.singleton.enuminstance
 * @Description:TODO
 * @Author 张乾坤
 * @Create: 2018/10/26
 * @Version 1.0
 * @Update: message
 */
public enum  EnumInstance {
    INSTANCE{
        protected void printTest(){
            System.out.println("GEELY");
        }
    };
    protected abstract void printTest();
    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
    public static EnumInstance getInstance(){
        return INSTANCE;
    }
}
